package com.atguigu.util.method_son;

import com.atguigu.util.method_fa.Employee;

/**
 * @author caesar
 * @date 2025/7/7
 * @Description:
 * @apiNote
 */
public class Developer extends Employee {
    private String language;

    public Developer() {
    }

    public Developer(String name, String employeeId, String language) {
        super(name, employeeId);
        this.language = language;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    @Override
    public void work() {
        System.out.println("开发者正在编写代码");
    }

    @Override
    public String toString() {
        return super.toString() + ", 使用语言: " + language;
    }
}
